package obs.service.impl;

import java.sql.SQLException;
import java.util.Date;

import obs.dao.UserDao;
import obs.service.RegistService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
@Transactional
public class RegistServiceImpl implements RegistService {

    @Autowired
    private UserDao userDao;

    @Override
    public boolean regist(String uid, String pwd, Date bothday) throws SQLException {
        return userDao.regist(uid, pwd, bothday);
    }
}
